import { NeedDictionaryService } from '../services/DictionaryService';

/**
 * @useDictionary 字典内容数据 hooks
 * @returns levelList 专家级别
 * @returns needStateList 状态
 * @returns checkStateList 申核状态
 * @returns supplyKindList 采购类别
 * @returns supplyWayList 采购类别
 * @returns supplyList 采购类型
 * @returns materialTypeList 物料类型
 * @returns cancelTypeList 取消类型
 */

export function useDictionary() {
  const {
    levelList,
    needStateList,
    checkStateList,
    supplyKindList,
    materialTypeList,
    supplyWayList,
    cancelTypeList,
    materialTypeMapList,
    mapLoading,
  } = NeedDictionaryService();

  return {
    levelList,
    needStateList,
    checkStateList,
    materialTypeList,
    supplyWayList,
    supplyKindList,
    cancelTypeList,
    materialTypeMapList,
    mapLoading,
  };
}
